package com.ruoyi.electronicFence.mapper;

import java.util.List;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.electronicFence.domain.TEquipmentMonitorDevice;
import org.apache.ibatis.annotations.Mapper;

/**
 * equipmentMonitorDeviceMapper接口
 *
 * @author sxygsj
 * @date 2024-08-07
 */
@Mapper
@DataSource(value = DataSourceType.SLAVE)
public interface TEquipmentMonitorDeviceMapper
{
    /**
     * 查询equipmentMonitorDevice
     *
     * @param id equipmentMonitorDevice主键
     * @return equipmentMonitorDevice
     */
    public TEquipmentMonitorDevice selectTEquipmentMonitorDeviceById(Long id);

    /**
     * 查询equipmentMonitorDevice列表
     *
     * @param tEquipmentMonitorDevice equipmentMonitorDevice
     * @return equipmentMonitorDevice集合
     */
    public List<TEquipmentMonitorDevice> selectTEquipmentMonitorDeviceList(TEquipmentMonitorDevice tEquipmentMonitorDevice);

    /**
     * 新增equipmentMonitorDevice
     *
     * @param tEquipmentMonitorDevice equipmentMonitorDevice
     * @return 结果
     */
    public int insertTEquipmentMonitorDevice(TEquipmentMonitorDevice tEquipmentMonitorDevice);

    /**
     * 修改equipmentMonitorDevice
     *
     * @param tEquipmentMonitorDevice equipmentMonitorDevice
     * @return 结果
     */
    public int updateTEquipmentMonitorDevice(TEquipmentMonitorDevice tEquipmentMonitorDevice);

    public int updateTEquipmentMonitorDeviceByMonitorDeviceId(TEquipmentMonitorDevice tEquipmentMonitorDevice);


    /**
     * 删除equipmentMonitorDevice
     *
     * @param id equipmentMonitorDevice主键
     * @return 结果
     */
    public int deleteTEquipmentMonitorDeviceById(Long id);

    public int deleteTEquipmentMonitorDeviceByMonitorDeviceId(TEquipmentMonitorDevice tEquipmentMonitorDevice);


    /**
     * 删除equipmentMonitorDevice
     *
     * @param id equipmentMonitorDevice主键
     * @return 结果
     */
    public int deleteTEquipmentMonitorDevice(TEquipmentMonitorDevice tEquipmentMonitorDevice);

    /**
     * 批量删除equipmentMonitorDevice
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTEquipmentMonitorDeviceByIds(Long[] ids);
}
